<!DOCTYPE html>
<html>
    <head>
        <title>SISCO - Modificar usuario</title>

        {include file="head_scripts.html"}
    </head>

    <body>

        {include file="header.html"}

        <div class="container">
            {include file="messages.html"}
            
            {if (true)}
<div id="" class="row">
	

                    {if (true)}
<div id="" class="span3">
	
                            {include file="usuario_sidebar.html"}
                        
</div>
{/if}

                    {if (true)}
<div id="" class="span9">
	
                            {if (true)}
<form id="" class="" action="" method="post" enctype="multipart/form-data">
	
                                    <legend >Modificar usuario</legend>

                                    {if (true)}
<label for="username">Nombre de usuario</label>
<input id="username" name="username" type="text" value="{$usuario->username}" placeholder=""  />
{/if}
                                    {if (true)}
<label for="password">Contraseña</label>
<input id="password" name="password" type="text" value="{$usuario->password}" placeholder=""  />
{/if}
                                    {if (true)}
<label for="nombre">Nombre Real</label>
<input id="nombre" name="nombre" type="text" value="{$usuario->nombre}" placeholder=""  />
{/if}
                                    
                                    
                                    <div class="pw-checkbox-group">
    <legend>Grupos a los que pertenece</legend>
    {foreach from=$grupos item="grupo"}
    {if ($usuario->grupo->where('id',$grupo->id)->count())}
    <label class="checkbox">
        <input name="grupos[]" type="checkbox" value="{$grupo->id}" checked="checked"> {$grupo->nombre}
    </label>
    {else}
    <label class="checkbox">
        <input name="grupos[]" type="checkbox" value="{$grupo->id}"> {$grupo->nombre}
    </label>
    {/if}
    {/foreach}
</div>

                                    
                                    {if (true)}
<div id="" class="form-actions">
	
                                            <button id="" name="" type="submit" class='btn btn-primary'>Modificar</button>

                                            <a id="" name="" href="usuarios/delete/{$usuario->id}/" class='btn btn-danger'>Eliminar</a>

                                        
</div>
{/if} <!-- .form-actions -->

                                
</form>
{/if} <!-- form -->

                        
</div>
{/if} <!-- .span9 -->

                
</div>
{/if} <!-- .row -->

            {include file="footer.html"}
        </div><!-- .container -->

        {include file="footer_scripts.html"}
        
    </body>
</html>